# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Urs Wolfer <uwolfer @ fwo.ch>

pkgname=blobby2
pkgver=1.1.1
arch=('loong64' 'x86_64')
pkgrel=1
pkgdesc="A beach ball game with blobs of goo"
url="http://sourceforge.net/projects/blobby/"
license=('GPL')
depends=('sdl2' 'physfs' 'libgl')
makedepends=('cmake' 'boost' 'mesa' 'zip')
source=(https://downloads.sourceforge.net/blobby/$pkgname-linux-$pkgver.tar.gz)
sha512sums=('4061de21586ed8404c1cfb5284820e5e0835d10270de12d5e336c1fd9bb080f27a732d9d6cd3a98cbf1eb9d674791d028692f8031b56a9e0be09fcadb2e64c03')

build() {
  cd "$srcdir"/blobby-$pkgver
  cmake -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir"/blobby-$pkgver
  make DESTDIR="$pkgdir" install
}
